package com.stellar.circle.basic.service.impl;

import com.stellar.circle.basic.dao.SChatRelationshipDao;
import com.stellar.circle.basic.entity.SChatRelationship;
import com.stellar.circle.basic.service.SChatRelationshipService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * 用户聊天关系表(SChatRelationship)服务实现
 *
 * @author Jqchan
 * @since 2025-06-12 21:21:35
 */
@Service
public class SChatRelationshipServiceImpl implements SChatRelationshipService {
    
    @Resource
    private SChatRelationshipDao sChatRelationshipDao;

    @Override
    public SChatRelationship queryById(Long id) {
        return sChatRelationshipDao.queryById(id);
    }

    @Override
    public SChatRelationship queryByCondition(SChatRelationship condition) {
        return sChatRelationshipDao.queryByCondition(condition);
    }

    @Override
    public List<SChatRelationship> queryAllByCondition(SChatRelationship condition) {
        return sChatRelationshipDao.queryAllByCondition(condition);
    }

    @Override
    public List<SChatRelationship> page(SChatRelationship condition, int page, int pageSize) {
        return sChatRelationshipDao.page(condition, page, pageSize);
    }

    @Override
    public int insert(SChatRelationship entity) {
        return sChatRelationshipDao.insert(entity);
    }

    @Override
    public int update(SChatRelationship entity) {
        return sChatRelationshipDao.update(entity);
    }

    @Override
    public int deleteById(Long id) {
        return sChatRelationshipDao.deleteById(id);
    }

    @Override
    public Long count(SChatRelationship condition) {
        return sChatRelationshipDao.count(condition);
    }
}
